import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'font-awesome/css/font-awesome.css'
import '@fortawesome/fontawesome-free/css/all.css'

const app = createApp(App)

if (localStorage.getItem('isLoggedIn')) {
  store.commit('setLoggedIn', true)
}

app.use(store)
app.use(router)
app.mount('#app')